package com.shine.icis.hbean;

import java.io.Serializable;
import java.text.DecimalFormat;

public class DataCheckR09 implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3662405149335236166L;
	
	private DecimalFormat doubleFormat = new DecimalFormat("0.00");
	private int id;
	private String depCode;//证券公司确定的营业部代码
	private String depName;//营业部名称
	private String fundAcct;//客户资金账户账号
	private String compareDesc; //异常说明
	private Character compareFlag; //是否一致：0一致1；不一致
	private int sjrq;//

	public DecimalFormat getDoubleFormat() {
		return doubleFormat;
	}
	public void setDoubleFormat(DecimalFormat doubleFormat) {
		this.doubleFormat = doubleFormat;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getDepCode() {
		return depCode;
	}
	public void setDepCode(String depCode) {
		this.depCode = depCode;
	}
	public String getDepName() {
		return depName;
	}
	public void setDepName(String depName) {
		this.depName = depName;
	}
	public String getFundAcct() {
		return fundAcct;
	}
	public void setFundAcct(String fundAcct) {
		this.fundAcct = fundAcct;
	}
	
	public String getCompareDesc() {
		return compareDesc;
	}
	public void setCompareDesc(String compareDesc) {
		this.compareDesc = compareDesc;
	}
	public Character getCompareFlag() {
		return compareFlag;
	}
	public void setCompareFlag(Character compareFlag) {
		this.compareFlag = compareFlag;
	}
	public int getSjrq() {
		return sjrq;
	}
	public void setSjrq(int sjrq) {
		this.sjrq = sjrq;
	}
	
	public String getCompareFlagText() {
		return compareFlag == '1' ? "异常":"正常";
	}
	
	public String getCompareDescText() {
		String text = "";
		if(compareDesc.equals("A12")){
			text = "A12中存在该资金账户，而A08-11中不存在。";
		}else{
			text = compareDesc + "中存在该资金账户，而A12中不存在。";
		}
		return text;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final DataCheckR09 other = (DataCheckR09) obj;
		if (id != other.id)
			return false;
		return true;
	}
	
	
	
}
